# -*- coding: utf-8 -*-
"""
@Time : 2024/2/26 2:58 PM
@Author: imamhusan
@Des: 描述
"""
from pydantic import BaseModel, Field
from typing import Optional, List


class CreateGoods(BaseModel):
    type_id: int
    title_uy: str
    title_ch: str
    image: str
    price: int
    quantity: Optional[int] = Field(description='库存量', default=1)


class UpdateGoods(BaseModel):
    type_id: int
    title_uy: str
    title_ch: str
    image: str
    price: int
    state: int
    quantity: Optional[int] = Field(description='库存量', default=1)


class MultiUpdateGoods(BaseModel):
    state: int
    ids: List[int]
